import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * @author tanghailan
 * @date 2021年12月30日 17:59
 * @author—Email tanghailan@outlook.com
 * @blogURL https://blog.csdn.net/qq_42979402
 * @description
 */
public class TestConvert {
  public static void main(String[] args) {
    //    List<Map<String, String>> mapList = new ArrayList<>();
    //    Map<String, String> map = new HashMap<>();
    //    map.put("username", "v1");
    //    map.put("password", "v2");
    //    mapList.add(map);
    //    List<User> users = Convert.toList(User.class, mapList);
    //    System.out.println(users);

    List<String> givenList =
        Arrays.asList(
            "440104", "440112", "440118", "440111", "440117", "440103", "440114", "440105",
            "440106", "440113", "440115");
    Collections.shuffle(givenList);
    int randomSeriesLength = 3;
    List<String> randomArea = givenList.subList(0, randomSeriesLength);
    System.out.println(randomArea);
  }
}
